<!DOCTYPE html>
<html lang="">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Login</title>

		<!-- Bootstrap CSS --><link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">

		
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
		<div class="container">
			<div style="padding-top: 20%;">
				<div class="panel panel-success text-center">
					<div class="panel-heading">
						<h1 class="panel-title">Blog</h1>
						<h5 class='text-success'>My Frist Blog</h5>
					</div>
					<div class="panel-body">
						<form action="/user/login" method="POST" role="form">
							<legend>User Login</legend>
						
							<div class="form-group">
								<label for="name">User Name</label>
								<input type="text" class="form-control" id="name" name="userName" placeholder="Input Your Name">
							</div>

							<div class="form-group">
								<label for="pwd">User Password</label>
								<input type="password" class="form-control" id="pwd" name="userPwd" placeholder="Input Your Password">
							</div>
							<button type="submit" id="btn_login" class="btn btn-success btn-block">Login</button>
						</form>
					</div>
					<div class="">
						<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
							<a href="#" title="ForGotter Password" class="text-danger">ForGotter Password</a>
						</div>
						<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
							<a href="/user/register" title="register" class="text-info">register</a>
						</div>
					</div>
					<div class="text-center">
						<p>If we can only encounter each other rather than stay with each other,then I wish we had never encountered. </p>
						<p style="margin-top:20px;">如果只是遇见，不能停留，不如不遇见。</p>
					</div>
					<%- include('../footer')%>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="/js/jquery-1.10.2.js"></script>
		<!-- Bootstrap JavaScript -->
		<script type="text/javascript" src="/js/bootstrap.min.js"></script>
		<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
		<script src="/js/canvas-particle.js"></script>
		<script type="text/javascript">
			window.onload = function(){
		    	//配置
			    var config = {
			        vx: 4,//点x轴速度,正为右，负为左
			        vy:  4,//点y轴速度
			        height: 2,//点高宽，其实为正方形，所以不宜太大
			        width: 2,
			        count: 100,//点个数
			        color: "121, 162, 185",//点颜色
			        stroke: "130,255,255",//线条颜色
			        dist: 6000,//点吸附距离
			        e_dist: 20000,//鼠标吸附加速距离
			        max_conn: 10//点到点最大连接数
			    }
			    //调用
			    CanvasParticle(config);
			}
		</script>
		<script type="text/javascript" charset="utf-8">
			$('#btn_login').on('click',function () {
				if($('#name').val() == null || $('#name').val() == ''){
					$('#name').focus();
					return false;
				}

				if($('#pwd').val() == null || $('#pwd').val() == ''){
					$('#pwd').focus();
					return false;
				}
			});
		</script>
	</body>
</html>